package cn.tonyqiu.gaecash.model;

import javax.jdo.PersistenceManager;

import cn.tonyqiu.gaecash.PMF;

public class BaseModel {

	protected PersistenceManager pm = null;
	
	public void delete() throws Exception {
		pm = PMF.get().getPersistenceManager();
		pm.deletePersistent(this);
		pm.close();
	}
		
}
